import logging

DEFAULT_FORMAT = "%(levelname)s:%(name)s:%(message)s"
# LOG_FORMAT = "%(asctime)s - %(filename)s[line:%(lineno)d] - %(levelname)s: %(message)s"
LOG_FORMAT = "%(asctime)s - %(filename)s[line:%(lineno)d] - %(levelname)s: %(name)s: %(message)s"

logger = logging.getLogger()
logger.setLevel(logging.DEBUG)

logging.basicConfig(format=LOG_FORMAT)

if __name__ == '__main__':

    logger.info('This is a info log.')
    logger.debug('Debug info here.')
